#ifndef __KEY_H__
#define __KEY_H__

#include "gpio.h"

#define KEY_RELEASE GPIO_PIN_SET
#define KEY_PRESSING GPIO_PIN_RESET
#define KEY_FILTER_TIME 100 // 100ms

typedef unsigned char KeyState;

extern KeyState g_key_state;

void key_task_handler(void);

#endif /*__KEY_H__ */